<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .box {
            width: 200px;
            height: 200px;
            background-color: blue;
        }
    </style>
</head>
<body>
    <div id="app">
        <!-- <div @click="clickBox" class="box">
            <button @click.stop="clickBtn">按钮</button>
        </div> -->

        <!-- <a href="https://www.baidu.com/" @click.prevent="push">内容</a> -->

        <!-- <button @click.once="onceClick">按钮</button> -->
    </div>

    <script src="https://cdn.jsdelivr.net/npm/vue@2.6.14/dist/vue.js"></script>

    <script>
        new Vue ({
            el : "#app" ,
            data : {

            },
            methods : {
                clickBox (){
                    console.log("点击了盒子");
                },
                clickBtn (){
                    console.log("点击了按钮");
                },
                push (){
                    console.log("点击了a标签");
                },
                onceClick (){
                    console.log("点击了按钮");
                }
            }
        })
    </script>
</body>
</html>